<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    {{msg}}==={{n}}
    <hr />
    <img style="width:400px" :src="url" alt="">
    <img :style="styleObj" :src="url" alt="">
  </div>
  <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.7.14/vue.min.js"></script>
  <script>
    var vm = new Vue({
      el: "#app",
      data: {
        msg: 'hello  vue',
        msg1: '<div>我是一个div</div>',
        msg2: '<div>我是一个div2222</div>',
        flag: true,
        n: 6,
        url: './assets/git.png',
        styleObj: 'width:700px;height:300px'
      },
    })

    // console.log(vm, 2222);
  </script>
</body>

</html>